<template>
    <div>
        <h1>这是app的主页</h1>
        <router-link to="/account">account组件</router-link>
        <router-link to="/productlist">productlist组件</router-link>

        <router-view></router-view>

        <mt-button type="danger">警告</mt-button>
        <mt-button type="danger" size="large">警告</mt-button>
        <mt-button type="primary" disabled>disabled</mt-button>
    </div>
</template>

<script>
import { Toast } from 'mint-ui';
export default {
    data(){
        return {

        }
    },
    created(){
        this.show();
    },
    methods:{
        show(){
            Toast({
                message: '数据正在加载...',
                // position: 'bottom',
                duration: -1,
                iconClass: 'glyphicon glyphicon-star',
                className:'box'
            });
        }
    }
    
}
</script>
<style lang="less" scoped>
   
</style>

<style lang="less">
    .box > i{
        color: red !important;
    }
</style>